package com.cloudoer.blog.service;

import com.cloudoer.blog.model.Photo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.ServletException;
import java.io.IOException;
import java.util.List;

public interface PhotoService {
    Photo getById(String id);

    List<Photo> getByPage (String albunId, int pstart, int psize);

    List<Photo> getAll (String albunId);

    String add(MultipartFile multipartFile, String albumId) throws ServletException, IOException;

    int update(Photo photo);

    int delete(String id);

    int getCount ();
}
